<template>
  <view class="">
    <view class="order-box" v-for="item in list">
      <view class="flex-ac box-title">
        <view class="line"></view>
        <view>{{handleTypeMap.get(item.handleType)}}</view>
      </view>
      <view class="flex-jc mt20">
        <view>操作时间</view>
        <view>{{ item.createTime }}</view>
      </view>
      <view class="flex-jc mt20">
        <view>操作人</view>
        <view>{{ item.creatorName }}</view>
      </view>
      <view class="flex-jc mt20">
        <view>操作内容</view>
        <view></view>
      </view>
    </view>
  </view>
</template>
<script setup>
import { ref, reactive } from "vue"
import { getRequest } from "@/reuqest/request";
import { handleTypeMap } from "@/utils/constans"

const props = defineProps({
  order: {
    type: Object,
    default: () => ({})
  }
})
const list = ref([])
const getData = () => {
  getRequest(`/wx-operation/api/v1/bm/order/handle/log/getByOrderUuid/${props.order.uuid}`).then(res => {
    if (res.bizCode === "00000") {
      console.log(res.data);
      list.value = res.data ?? []
    }
  });
}
getData()

</script>
<style lang="scss" scoped></style>
